package com.recharge.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.recharge.common.result.ResultDO;
import com.recharge.core.entity.ProviderGoodsEntity;
import com.recharge.domain.query.ProviderGoodsQueryDO;
import com.recharge.domain.vo.CardDO;
import com.recharge.domain.vo.ProviderGoodsDO;

/**
 * <p>
 * 商品供应表 服务类
 * </p>
 *
 * @author Reagan
 * @since 2020-10-20
 */
public interface ProviderGoodsService extends IService<ProviderGoodsEntity> {

    /**
     * 添加商品供应记录
     *
     * @param domain
     * @return ResultDO
     */
    public ResultDO add(ProviderGoodsDO domain);

    /**
     * 编辑商品供应记录
     *
     * @param domain
     * @return ResultDO
     */
    public ResultDO edit(ProviderGoodsDO domain);

    /**
     * 返回商品供应记录
     *
     * @param id
     * @return ResultDO
     */
    public ResultDO get(String id);

    /**
     * 删除商品供应记录
     *
     * @param id
     * @param modifier
     * @return
     */
    public ResultDO remove(String id, String modifier);

    /**
     * 查找商品供应记录
     *
     * @param query
     * @return ResultDO
     */
    public ResultDO find(ProviderGoodsQueryDO query);

    /**
     * 新增商品供应记录
     * @param domain
     * @param provideMethodType
     * @return
     */
    ResultDO provideGoods(CardDO domain, int provideMethodType);

}
